package com.mall.product.domain.entity;

import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * SKU对象 pro_sku
 *
 * @author zhonglin
 * @date 2020-05-11
 */
public class ProSku
    extends BaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * sku id
   */
  private Long skuId;

  /**
   * 条码
   */
  @Excel(name = "条码")
  private String barcode;

  /**
   * sku 名称
   */
  @Excel(name = "sku 名称")
  private String skuName;

  /**
   * 商品ID
   */
  @Excel(name = "商品ID")
  private Long productId;

  /**
   * 显示顺序
   */
  @Excel(name = "显示顺序")
  private Integer orderNum;

  /**
   * 零售价
   */
  @Excel(name = "零售价")
  private Double retailPrice;

  /**
   * 实售价
   */
  @Excel(name = "实售价")
  private Double currentPrice;

  /**
   * 状态（0正常 1停用）
   */
  @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
  private String status;

  /**
   * 删除标记（0代表存在 2代表删除）
   */
  private String delFlag;

  public void setSkuId(Long skuId) {

    this.skuId = skuId;
  }

  public Long getSkuId() {

    return skuId;
  }

  public void setBarcode(String barcode) {

    this.barcode = barcode;
  }

  public String getBarcode() {

    return barcode;
  }

  public void setSkuName(String skuName) {

    this.skuName = skuName;
  }

  public String getSkuName() {

    return skuName;
  }

  public void setProductId(Long productId) {

    this.productId = productId;
  }

  public Long getProductId() {

    return productId;
  }

  public void setOrderNum(Integer orderNum) {

    this.orderNum = orderNum;
  }

  public Integer getOrderNum() {

    return orderNum;
  }

  public void setRetailPrice(Double retailPrice) {

    this.retailPrice = retailPrice;
  }

  public Double getRetailPrice() {

    return retailPrice;
  }

  public void setCurrentPrice(Double currentPrice) {

    this.currentPrice = currentPrice;
  }

  public Double getCurrentPrice() {

    return currentPrice;
  }

  public void setStatus(String status) {

    this.status = status;
  }

  public String getStatus() {

    return status;
  }

  public void setDelFlag(String delFlag) {

    this.delFlag = delFlag;
  }

  public String getDelFlag() {

    return delFlag;
  }

  @Override
  public String toString() {

    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("skuId", getSkuId())
                                                                    .append("barcode", getBarcode())
                                                                    .append("skuName", getSkuName())
                                                                    .append("productId", getProductId())
                                                                    .append("orderNum", getOrderNum())
                                                                    .append("retailPrice", getRetailPrice())
                                                                    .append("currentPrice", getCurrentPrice())
                                                                    .append("status", getStatus())
                                                                    .append("delFlag", getDelFlag())
                                                                    .append("createBy", getCreateBy())
                                                                    .append("createTime", getCreateTime())
                                                                    .append("updateBy", getUpdateBy())
                                                                    .append("updateTime", getUpdateTime())
                                                                    .append("remark", getRemark())
                                                                    .toString();
  }

}
